home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / fontutil.6 / fontutil / fontutils-0.6 / include / file-output.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-27  |  1.5 KB  |  43 lines

  1. /* file-output.h: declarations for file reading.
  2.  
  3. Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef FILE_OUTPUT_H
  20. #define FILE_OUTPUT_H
  21.  
  22. #include <stdio.h>
  23. #include "types.h"
  24.  
  25.  
  26. /* Write some number of bytes to the file F.  The FILENAME argument
  27.    is passed to perror(3), if the write fails, and then the program is
  28.    halted.  */
  29. extern void put_byte (one_byte, FILE *f, string filename);
  30. extern void put_two (two_bytes, FILE *, string);
  31. extern void put_three (four_bytes, FILE *, string);
  32. extern void put_four (four_bytes, FILE *, string);
  33. extern void put_n_bytes (unsigned n, address, FILE *, string);
  34.  
  35. /* We assume the number is already in two's complement, and so we merely 
  36.    have to output the bits.  */
  37. #define put_signed_byte put_byte
  38. #define put_signed_two put_two
  39. #define put_signed_three put_three
  40. #define put_signed_four put_four
  41.  
  42. #endif /* not FILE_OUTPUT_H */
  43.